package org.jflame.devAide.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Loger {

    private final static Logger logger = LoggerFactory.getLogger("devAide");

    public static void debug(String message) {
        if (logger.isDebugEnabled()) {
            logger.debug(message);
        }
    }

    public static void debug(String message, Object... args) {
        if (logger.isDebugEnabled()) {
            logger.debug(message, args);
        }
    }

    public static void info(String message) {
        logger.info(message);
    }

    public static void info(String message, Object... args) {
        logger.info(message, args);
    }

    public static void error(String message) {
        logger.error(message);
    }

    public static void error(Throwable ex) {
        logger.error("", ex);
    }

    public static void error(String message, Throwable ex) {
        logger.error(message, ex);
    }

    public static void error(String message, Object... args) {
        logger.error(message, args);
    }
}
